/* Copyright 2012 Dustin Mitchell <dmmitche [at] gmail [dot] com>
 *
 * Licensed under the GPLv3.  See included LICENSE.txt for full details.
 */

#ifndef __SERVICE__
#define __SERVICE__

#include <pthread.h>

#include "message_queue.h"

struct service
{
  pthread_t thread_id;
};

int service_start (struct service *svc, struct message_queue *queue,
                   void (*ep)(struct message_queue *, void *), void *user_obj);

int service_wait (struct service *service);

#endif /* __SERVICE__ */
